
<%@ page pageEncoding="UTF-8"%>

<%@ include file="/common/taglibs.jsp"%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ include file="/common/meta.jsp"%>
<style>
body{ background:url(images/skin0/index/login.png) center top}
			  .fxtable{border: 1px solid #C1DAD7;width: 100%;margin-top:1px;}
			  .fxtable2{border: 1px solid #C1DAD7;width: 100%;margin-top:1px;}
			  .fxtable2 td.cls {border-right: 1px solid #C1DAD7;border-bottom: 1px solid #C1DAD7;background: #fff;font-size:12px;padding: 6px 6px 6px 12px;color: #4f6b72;}
		      .fxtable td {border-right: 1px solid #C1DAD7;border-bottom: 1px solid #C1DAD7;background: #fff;font-size:12px;padding: 6px 6px 6px 12px;color: #4f6b72;}
		        a.button{background:url(images/button.gif);	display:block;color:#555555;font-weight:bold;height:30px;line-height:29px;margin-bottom:14px;text-decoration:none;width:191px;}
				a:hover.button{color:#0066CC;}
		      .lens{ no-repeat 10px 8px;text-indent:30px;display:block;}
		      .fsg_nr{ position:absolute; display:none;top:25px; right:-3px; background:#fff; border:1px solid #98B1C8; }
</style>
</head>

<body>
<s:form name="zsdwForm" action='system.do' method="post" >

	<div class="tableContainer" id="tableContainer" style="height:400px;text-align:center">
    	<table class="fxtable"  cellpadding="0" style="width:50%">
    		<tr>
    			<td><b>原始密码：</b></td>
    			<td>
    			<s:password name="map.oldpassword"></s:password>
    			
    		</tr>
    		<tr>
    			<td><b>新密码：</b></td>
    			<td>
    			<s:password name="map.newpassword"></s:password>
    			</td>
    		</tr>
    		<tr>
    			<td colspan=2 align=center>
    				<input type=button name="t" value="保   存" onclick="doSave();"/>
    			</td>
    		</tr>
    	</table>
    </div>	
   
</s:form>


<script type="text/javascript">

		function doSave(){
			if($('map.newpassword').value.trim()==''){
				alert('新密码不能为空');
				return false;
			}
			var ajax = new AppAjax("system!doSave.do",save_Back).submitForm("zsdwForm");
		}
		
		function save_Back(data){
			
			if(data.message.code >0){
				alert('密码修改成功');
				document.forms[0].submit();
			}else{
				alert(data.message.text);
			}
		}
</script>
</body>
</html>